//
//  LabelViewController.m
//  SDKSample
//
//  Created by 小肥羊 on 15/7/14.
//  Copyright (c) 2015年 Zhu‘s Game House. All rights reserved.
//

#import "LabelViewController.h"

@interface LabelViewController ()

@end

@implementation LabelViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
//    FXLabel *label = [[FXLabel alloc] initWithFrame:CGRectMake(0, 300, self.view.bounds.size.width, 200)];
//    //[label setNumberOfLines:0];
//    [label setText:@"dglskdjglosidnbisdnligjtlisdlnbgksfhsfhfdglskdjglosidnbisdnligjtlisdlnbgksfhsfhfdglskdjglosidnbisdnligjtlisdlnbgksfhsfhfdglskdjglosidnbisdnligjtlisdlnbgksfhsfhfdglskdjglosidnbisdnligjtlisdlnbgksfhsfhfdglskdjglosidnbisdnligjtlisdlnbgksfhsfhfdglskdjglosidnbisdnligjtlisdlnbgksfhsfhfdglskdjglosidnbisdnligjtlisdlnbgksfhsfhf"];
//    [label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
//    [label setUp];
//    [self.view addSubview:label];
    
//    [self.testLabel setLineSpacing:8];
//    [self.testLabel2 setLineSpacing:8];
    [self.testLabel3 setText:@"我是一个普通的Label我是一个普通的Label我是一个普通的Label我是一个普通的Label我是一个普通的Label我是一个普通的Label我是一个普通的Label哈哈"];
    
    UILabel *messageLabel = [[UILabel alloc] initWithFrame:CGRectMake(8, 350, self.view.bounds.size.width -16, 60)];
    [messageLabel setFont:[UIFont systemFontOfSize:14]];
    [messageLabel setTextColor:[[UIColor alloc] initWithWhite:0.25 alpha:1.0]];
    [messageLabel setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
    [messageLabel setText:@"我也是一个普通的Label我也是一个普通的Label我也是一个普通的Label我也是一个普通的Label我也是一个普通的Label我也是一个普通的Label我也是一个普通的Label我也是一个普通的Label我也是一个普通的Label我也是一个普通的Label哈哈"];
    messageLabel.numberOfLines = 0;
    [messageLabel setValue:@"20" forKeyPath:@"lineSpacing"];

    [self.view addSubview:messageLabel];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
